﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpShare.Configuration;
using SharpShare.Activation;

namespace SharpShare.Management.Mmc.Nodes {
    public class StorageProvidersNode : ExtensionsNode<StorageProviderElement> {
        public StorageProvidersNode(IExtensionFactory<StorageProviderElement> factory)
            : base(factory) {

        }

        protected override ExtensionNode<StorageProviderElement> CreateExtensionNode(ExtensionDescriptor<StorageProviderElement> descriptor) {
            return new StorageProviderNode(this.Factory, descriptor) {
                ImageIndex = this.ImageIndex,
                SelectedImageIndex = this.SelectedImageIndex,
                InstanceSelector = this.InstanceSelector
            };
        }
    }
}
